package com.TocaLetras;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class ResultadoActivity extends Activity {
	private ImageButton  Btn_salir;
	private ImageButton  Btn_puntajes;
	private final int SECONDARY_ACTIVITY_REQUEST_CODE=0;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.resultado);
        addListeners();
    }
	
	public void addListeners(){
	    	 Btn_salir = (ImageButton)findViewById(R.id.btn_resultado_salir);
	    	 Btn_salir.setOnClickListener( new View.OnClickListener() {
				
				public void onClick(View v) {
					Intent inten = new Intent(getApplicationContext(),JuegoPrincipalActivity.class);
	 				inten.putExtra("mkey","Hola");
	 				startActivityForResult(inten,SECONDARY_ACTIVITY_REQUEST_CODE);
	 				finish();
				}
			});
	    	 
	    	 Btn_puntajes = (ImageButton) findViewById(R.id.btn_resultado_puntaje);
	    	 Btn_puntajes.setOnClickListener(new View.OnClickListener() {
				
				public void onClick(View v) {
					Intent inten = new Intent(getApplicationContext(),PuntajesActivity.class);
	 				inten.putExtra("mkey","Hola");
	 				startActivityForResult(inten,SECONDARY_ACTIVITY_REQUEST_CODE);
	 				finish();
				}
			});
	    	 
	}
}